package com.lottery.game.core.modules.service.game;

import com.lottery.game.common.base.service.BaseService;
import com.lottery.game.core.model.dto.game.GameTypePlayingRelationTO;
import com.lottery.game.core.model.dto.game.GameTypeTO;
import com.lottery.game.core.modules.entity.game.GameTypePlayingRelation;
import com.lottery.game.core.modules.entity.game.SysDict;

import java.util.List;

public interface GameTypePlayingRelationService extends BaseService<GameTypePlayingRelation> {
    /**
     * 通过编号查找类型
     * @param id
     * @return
     */
    GameTypePlayingRelationTO find(String id);

    /**
     * 通过code查找
     * @param code
     * @return
     */
    GameTypePlayingRelationTO findByCode(String code);

    /**
     * 查询所有
     * @return
     */
    List<GameTypeTO> playings();

    /**
     * 所有类型
     * @return
     */
    List<GameTypePlayingRelationTO> all();

    /**
     * 通过编码查找
     * @param ticket
     * @return
     */
    GameTypePlayingRelationTO findByTicket(Integer ticket);
    /**
     * 通过编码查找
     * @param ticket
     * @return
     */
    GameTypePlayingRelationTO findByTicketAndRoomid(Integer ticket, String roomid);

    List<GameTypePlayingRelationTO> findByGameTypeCode(String typeCode);

    void updateGameTypeOpenOrCloseByticket(int ticket,int open);

    /**
     * @Description   查询博彩种类
     * @param:
     * @Return
     * @Date 2019/5/30_9:56
     */
   List<SysDict>  getGroup();
}
